<?

	include("inc/config.inc.php");

	$user = mysqli_real_escape_string($con,$_GET[e]);

	// Check we are HR!
	if ($_SESSION[role] != "HR")
		die ("Error 51 - User error - Please contact support.");
	            
	mysqli_query($conn, "UPDATE users SET deleted=1 WHERE user='$user'");
	header("Location:users.php");


?>
